package com.sykj.bsc.jhy.service.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.bsc.jhy.entity.Bis_nurse_bag;
import com.sykj.bsc.jhy.mapper.Bis_nurse_bagMapper;
import com.sykj.bsc.jhy.service.Bis_nurse_bagService;

@Service
public class Bis_nurse_bagServiceImpl implements Bis_nurse_bagService{

	@Autowired Bis_nurse_bagMapper mapper;
	//查询礼包列表
	@Override
	public List<Bis_nurse_bag> selectBis_nurse_bag(Bis_nurse_bag bag) {
		return mapper.selectBis_nurse_bag(bag);
	}
	//删除礼包列表记录
	@Override
	public void delBis_nurse_bag(Integer bag_id) {
		mapper.delBis_nurse_bag(bag_id);
		
	}
	//礼包详情
	@Override
	public Bis_nurse_bag selectBagById(Integer bag_id) {
		return mapper.selectBagById(bag_id);
	}
	
	//添加礼包与项目信息表
	public void savebis_bag_project(Map map){
		this.mapper.savebis_bag_project(map);
	};
	
	//添加礼包
	public void savebis_nurse_bag(Map map){
		this.mapper.savebis_nurse_bag(map);
	}
	@Override
	public void updateBis_nurse_bag(Bis_nurse_bag bnb) {
		// TODO Auto-generated method stub
		mapper.updateBis_nurse_bag(bnb);
	};
}
